package wang.hu.bos.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import wang.hu.bos.dao.FixedAreaDao;
import wang.hu.bos.domain.base.FixedArea;
import wang.hu.bos.service.FixedAreaService;

@Service
@Transactional
public class FixedAreaServiceImpl implements FixedAreaService {
	@Autowired
	private FixedAreaDao fixedAreaDao;

	@Override
	public void save(FixedArea model) {
		fixedAreaDao.save(model);
	}

	@Override
	public Page<FixedArea> pageData(Specification<FixedArea> specification,
			Pageable pageable) {

		return fixedAreaDao.findAll(specification, pageable);
	}

}
